import { Component } from '@angular/core';

import { TimeIntervalService } from '../timeInterval.service';
@Component({
  selector: 'app-pink',
  templateUrl: './pink.component.html',
  styleUrls: ['./pink.component.css'],
  providers: [TimeIntervalService],
})
export class PinkComponent {
  timer: TimeIntervalService;
  constructor(timer: TimeIntervalService) {
    this.timer = timer;
  }
  pinkClick() {
    this.timer.timeFn('pink计数器')();
  }
}
